import { resfilter } from '../../core/utils';

export const responseFilter = format => async function fn(m, next) {
  m.res = resfilter({ format })(m.res);
  next();
};
